#include <bits/stdc++.h>
using namespace std;

using ll = int64_t;
const int N = 10;
int n, t;
int a[N];

int main() {
    ios_base::sync_with_stdio(false), cin.tie(nullptr);
    cin >> t;
    while(t--){
        cin >> n;
        int cnt = 0, neg = 0;
        for(int i = 1; i <= n; ++i){
            cin >> a[i];
            if(a[i] == 0){
                cnt++;
            }
            else if(a[i] < 0) neg++;
        }
        cnt += (neg % 2)*2;
        cout << cnt << '\n';
    }
    return 0;
}